<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\DB;


class CreateBrandTypeTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('brand_type', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('name')->comment('品牌类型名称');
            $table->string('comment')->default('')->comment('类型备注');
            $table->timestamps();
        });

        DB::statement("ALTER TABLE `brand_type` comment '品牌类型表';");

    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('brand_type');
    }
}
